document.write('<script src="/static/js/jquery.min.js"></script>');

/** 获取币种列表 **/
function getCoinTypeList() {
    var coinTypeList;
    $.ajax({
        async: false,
        url: '/back/coinType/list',
        type: 'GET',
        success: function (baseDto) {
            coinTypeList = baseDto.data;
        }
    });
    return coinTypeList;
}
/** 获取股东等级列表 **/
function getLevelList() {
    var levelList;
    $.ajax({
        async: false,
        url: '/back/level/list',
        type: 'GET',
        success: function (baseDto) {
            levelList = baseDto.data;
        }
    });
    return levelList;
}

/** 获取币种列表 **/
function getCardTypeList() {
    var cardTypeList;
    $.ajax({
        async: false,
        url: '/back/cardType/list',
        type: 'GET',
        success: function (baseDto) {
            cardTypeList = baseDto.data;
        }
    });
    return cardTypeList;
}

function getCoinType(coinTypeId) {
    var coinTypeList = getCoinTypeList();
    for (var i = 0; i < coinTypeList.length; i++) {
        if (coinTypeList[i].id == coinTypeId)
            return coinTypeList[i];
    }
    return null;
}

/** 交易场景 **/
var dealScene = ['在线挂买','在线挂卖','股东转账','会员转账','系统回购','用户购买'];

function getDealSceneList() {
    return dealScene;
}

function getDealScene(dealSceneId) {
    return dealScene[dealSceneId];
}


